package com.jinsilu.freight.http.request;

import com.hjq.http.config.IRequestApi;
import com.hjq.http.config.IRequestType;
import com.hjq.http.model.BodyType;

/**
 * 已完成运单列表/未完成运单列表
 *
 * @author yangyang
 * @time 2020-11-18 14:08
 */
public class GetWaybillListApi implements IRequestApi, IRequestType {

    private Integer pageNum;
    private Integer pageSize;
    private String type; // 0 - 未完成 1 - 已完成

    @Override
    public String getApi() {
        return "api/waybill/list";
    }

    public GetWaybillListApi setPageNum(Integer pageNum) {
        this.pageNum = pageNum;
        return this;
    }

    public GetWaybillListApi setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
        return this;
    }

    public GetWaybillListApi setType(String type) {
        this.type = type;
        return this;
    }

    @Override
    public BodyType getType() {
        return BodyType.FORM;
    }
}
